package com.itheima.ObjectOutPutStream;

import java.io.Serializable;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/11 9:45
 */
public class Stduent implements Serializable {
    private String name  ;
    private int age ;

    @Override
    public String toString() {
        return "Stduent{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Stduent(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Stduent() {
    }
}
